package top.zuli.package01.class16;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class Demo1 {
    public static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    /*程序入口*/
    public static void main(String[] args) {
        for (int i = 1; i <=10; i++) {
            new Thread(){
                @Override
                public void run() {
                    try {
                        System.out.println(simpleDateFormat.parse("2012-12-12 12:12:12"));
                    } catch (ParseException e) {
                        e.printStackTrace();
                    }
                }
            }.start();
        }
    }
}

/*
public class Demo1 {
    public static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    public static void main(String[] args) {
        for (int i = 1; i <=10; i++) {
            new Thread(){
                @Override
                public void run() {
                    try {
                        System.out.println(simpleDateFormat.parse("2012-12-12 12:12:12"));
                    } catch (ParseException e) {
                        e.printStackTrace();
                    }
                }
            }.start();
        }
    }
}
*/
